/*
	FileName : BSP_TIM.h
	Description :
		
		
	Created on 2015.01.18 by ZZP.

	Revision History:

*/

#ifndef __BSP_TIM_H__
#define __BSP_TIM_H__

#include "stdint.h"

#define TIM_1			1
#define TIM_2			2
#define TIM_3			3
#define TIM_4			4
#define TIM_5			5
#define TIM_6			6
#define TIM_7			7
#define TIM_8			8
#define TIM_9			9
#define TIM_10			10
#define TIM_11			11
#define TIM_12			12
#define TIM_13			13
#define TIM_14			14

uint8_t BSP_TIM_Init(uint8_t TimIndex, uint16_t Freq);
void BSP_TIM3_Init(uint16_t AdcFreq);
void BSP_TIM6_Init(uint16_t DacFreq);
void BSP_TIM7_Init(uint16_t DacFreq);
void BSP_TIM6_DeInit(void);
void BSP_TIM7_DeInit(void);
void BSP_TIM_Deinit(void);

void TIM3_Start(void);
void TIM3_Stop(void);
void TIM6_Start(void);
void TIM6_Stop(void);
void TIM7_Start(void);
void TIM7_Stop(void);

#endif///EOF

